<%inherit file="/mtp.html" />

<h1>Permissions</h1>

<ul>
% for perm in c.permissions:
    <li>${perm.user.username if perm.user else 'anon'} ${perm.thing} ${perm.action}</li>
% endfor
</ul>

<form action="/permissions/grant" method="post">
    <input type="text" name="username"/>
    <input type="text" name="thing"/>
    <input type="text" name="action"/>
    <input type="submit" value="grant"/>
</form>
 <form action="/permissions/revoke" method="post">
    <input type="text" name="username"/>
    <input type="text" name="thing"/>
    <input type="text" name="action"/>
    <input type="submit" value="revoke"/>
</form>
    
